package net.valerijtimakov.homefinances.domain.common;

public class OwnedItem extends DataItem {
	
	private static final long serialVersionUID = 1L;
	
	private long userId;
	
	public OwnedItem() {
		super();
	}

	public OwnedItem(long id, long userId) {
		super(id);
		this.userId= userId;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "userId=" + userId + "," + super.toString();
	}
	
}
